import request from '@/utils/request'

// **************仓库配送地址管理**********************

export function getAddressList (data) { //仓库配送地址列表
    return request({
        url: '/wms-center/repertory/address/search',
        method: 'get',
        params : data
    })
}

export function getRegionDetail (data,method) { //仓库配送地址单条数据详情
    return request({
        url: '/wms-center/repertory/address',
        method: method,
        data
    })
}

export function delRegion (data,method) { //删除仓库地址
    return request({
        url: '/wms-center/repertory/address',
        method: method,
        data
    })
}
export function confirmdelivery (id,logisticsType) { // 确认收货
    return request({
        url: '/wms-center/wms-receive/' + id + '/' + logisticsType,
        method: 'put',
    })
}
export function logInfo (data) { // 打印订单信息
    return request({
        url: '/wms-center/wms-receive',
        method: 'post',
        data
    })
}
